package com.sdx.console.evaluation.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.beetl.sql.core.annotatoin.*;
import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.util.ValidateConfig;
import com.sdx.service.ConfigService;

import org.beetl.sql.core.TailBean;
import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import com.sdx.common.utils.Utils;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

/* 
* 
* gen by Spring Boot2 Admin 2019-05-25
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
@Table(name="cp_task_setup")
public class CpTaskSetup extends BaseEntity{

    //任务编号
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @AutoID	
    private Integer taskId ;
	
    //测评模型
    private Integer tplId ;

    @ColumnIgnore
    private  String tplName;
	
    //任务名称
    private String taskName ;
	
    //任务状态
    private String taskStatus ;
	
    //测评进度
    private Integer taskProgress ;
	
    //测评分组
    private String taskGroup ;
	
    //测评开始时间
    private Date beginTime ;
	
    //测评结束时间
    private Date endTime ;
	
    //总人数
    private Integer totalNum ;
	
    //测评人数
    private Integer assessNum ;
	
    //被测评人数
    private Integer beassessNum ;
	
    //测评数据文件
    private String assessFile ;
	
    //创建人
    private Integer createdBy ;
	
    //创建人名称
    private String createdName ;
	
    //创建时间
    private Date createdTime ;
	
    //更新人
    private Integer updatedBy ;
	
    //更新人名称
    private String updatedName ;
	
    //更新时间
    private Date updatedTime ;
	
	public String getAssessFileLink(){
		return Utils.imageUrl(assessFile);
	}

}
